Skip to content

Conversation

lesguillemets
Copy link

@lesguillemets lesguillemets commented Oct 10, 2016

Currently, Suggestions fromghc-mod lint are treated as errors because ghcmod#parse_make doesn't handle messages starting with Suggestion:. I think these suggestions are better treated as warnings rather than errors. What do you think?

For example, for this code

main = putStrLn $ "Hi"
before : |1 col 8 error| Suggestion: Redundant $
after  : |1 col 8 warning| Suggestion: Redundant $

Edit: I wasn't able to update/add test for this, as the tests don't seem to be working in my environment (I haven't investigated further). Let me know if there's anything I should do.

    before : |1 col 8 error| Suggestion: Redundant $
    after  : |1 col 8 warning| Suggestion: Redundant $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant